<template>
	<view>
		<view class="information">
			<view class="information-span">
				<view class="information-span-icon"></view>
				<view>账号信息</view>
			</view>
			<view class="w">
				<view class="information-petname" @touchend="touchendModify(1)">
					<view class="information-petname-left">
							<view class="petname-title">昵称</view>
							<view class="petname">{{this.users.petName}}</view>
					</view>
					<view class="iconfont iconarrow"></view>
				</view>
				<view class="information-petname"  @touchend="touchendModify(2)">
					<view class="information-petname-left">
							<view class="petname-title">简介</view>
							<view class="petname">{{this.users.briefIntroduction}}</view>
					</view>
					<view class="iconfont iconarrow"></view>
				</view>
				<view class="information-petname">
					<view class="information-petname-left" @touchend="touchendModify(3)">
							<view class="petname-title">注册时间</view>
							<view class="petname">2020-10-08</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default{
	name: 'accountInformation',
	props: {
		users: {}
	},
	methods: {
		touchendModify(e) {
			if(e == 1)
			{
				uni.navigateTo({
					url: './modifys/PetName',
					success: (res) => {
						console.log("ok");
					}
				})
			}else if(e == 2){
				uni.navigateTo({
					url: './modifys/BriefIntroduction',
					success: (res) => {
						console.log("ok");
					}
				})
			}
		}
	}
}
</script>

<style>
	.information{
		margin-bottom: 10px;
		background-color: #fff;
	}
		.information-span{
			display: flex;
			align-items: center;
			color: #555555;
			font-size: 15px;
			height: 32px;
			letter-spacing: 1px;
		}
			.information-span-icon{
				height: 20px;
				width: 3px;
				background-color: #FE6440;
				border-radius: 10px;
				margin-right: 10px;
			}
		.w{
			margin-left: 10px;
			margin-right: 10px;
		}
			.information-petname{
				height: 44px;
				display: flex;
				align-items: center;
				justify-content: space-between;
				border-top: rgb(153,153,153,0.5) solid 1px;
			}
				.iconarrow{
					font-size: 38px;
					transform:rotate(270deg);
				}
				.information-petname-left{
					width: 240px;
					height: 42px;
					display: flex;
					align-items: center;
				}
					.petname-title{
						width: 80px;
						font-size: 15px;
						letter-spacing: 1px;
					}
					.petname{
						font-size: 15px;
						letter-spacing: 1px;
						color: rgb(0,0,0,0.8);
					}
</style>
